/*
 * @Description: 支付方式
 * @Date: 2022-12-07 21:51:20
 * @Author: lizhiqiang
 */
import { PayMode } from "@/types/api"
import { get, post } from "../utils/request"
/**
 * 获取支付方式列表
 * @param params 
 * @returns 
 */
export const GetPaymentModeList = (params:PayMode)=>{
    return post("/cdwl-merchant/inner/paymode/list",params)
}
/**
 * 保存支付方式
 * @param params 
 * @returns 
 */
export const SavePaymentMode = (params:PayMode)=>{
    return post("/cdwl-merchant/inner/paymode/save",params)
}
/**
 * 编辑支付方式
 * @param params 
 * @returns 
 */
export const UpdatePaymentMode = (params:PayMode)=>{
    return post("/cdwl-merchant/inner/paymode/update",params)
}
/**
 * 获取支付方式详情
 * @param id 
 * @returns 
 */
export const GetPaymentModeInfo = (id:string)=>{
    return get(`/cdwl-merchant/inner/paymode/info/${id}`)
}
/**
 * 删除支付方式
 * @param params 
 * @returns 
 */
export const DeletePaymentMode = (params:Array<string>)=>{
    return post("/cdwl-merchant/inner/paymode/deleteBatch",
        params
    )
}